/ Published in: ActionScript 3
                    
                                        Key handlers for ctrl alt combos
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 stage.addEventListener(KeyboardEvent.KEY_DOWN, hiddenKeysDown_handler); stage.addEventListener(KeyboardEvent.KEY_UP, hiddenKeysUp_handler); //Key Handlers private function hiddenKeysDown_handler(e:KeyboardEvent):void{ if (e.ctrlKey && e.shiftKey && e.altKey) { // do something } } private function hiddenKeysUp_handler(e:KeyboardEvent):void{ //stop doing something }
URL: Key Handlers
Comments
                    Subscribe to comments
                
                